package lib.wzh.com.libcore.framework.threadpool;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.concurrent.TimeUnit;

/**
 * @Author lib
 * @Date 2021/12/18 22:37
 * @ClassName MallExecutorConfigurationPropertion
 * @Version v1.0
 */
@ConfigurationProperties(prefix = "mall.thread")
@Data
public class MallExecutorConfigurationProperties {

    private Integer corePoolSize;

    private Integer maxPoolSize;

    private Long keepAliveTime = 10L;

    private TimeUnit unit = TimeUnit.SECONDS;
}
